package com.za.wbw.dao.wap.impl;

import java.util.List;
import java.util.Map;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import com.za.wbw.dao.wap.CommentDao;
import com.za.wbw.model.wap.CommentInfo;

public class CommentDaoImpl extends SqlMapClientDaoSupport implements CommentDao{
	public int queryCommentCount() throws Exception{
		return (Integer)getSqlMapClientTemplate().queryForObject("wap.queryCommentCount");
	}
	public List<CommentInfo> queryCommentList(int shopId) throws Exception {
		return (List<CommentInfo>)getSqlMapClientTemplate().queryForList("wap.queryCommentList");
	}
	public List<CommentInfo> queryCommentPage(Map<String, Object> pars) throws Exception{
		return (List<CommentInfo>)getSqlMapClientTemplate().queryForList("wap.queryCommentPage");
	}
}
